package cn.wolfcode.wolf2world.repository;

import cn.wolfcode.wolf2world.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author 杨兴健
 * @Date 2020-08-16 22:14
 */
public interface TravelCommentRepository extends MongoRepository<TravelComment,String> {

    /**
     * 根据游记id获取所有评论
     * @param travelId
     * @return
     */
    List<TravelComment> findByTravelId(String travelId);
}
